
function timeout(ms) {
    // return new Promise((resolve) => {
    //     setTimeout(resolve, ms);
    // });
    setTimeout(()=>{
        console.log(111)
    },1000)
}

async function asyncPrint(value, ms) {
    await timeout(ms);
    console.log(value);
}

console.log(typeof asyncPrint('hello world', 2000));